package com.xyf.statistics.controller;


import com.seventh.common.pojo.R;
import com.xyf.statistics.service.LogStatisticsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @program: clms-seventh
 * @description:
 * @author: 徐亚飞
 * @create: 2021-07-25 14:12
 **/

@RestController
@RequestMapping("statistics/log")
@Api(tags="日志统计模块")
public class LogStatisticController {

    @Resource
    LogStatisticsService service;

    @PostMapping("selectLog/{value3}")
    @ApiOperation("日志统计查询")
    public R selectOrder(
            @ApiParam(name = "ymonth", value = "年月(yyyy-MM)", required = true)
            @PathVariable("value3") String ymonth){
//        System.out.println("1111111111111111111"+ymonth);
        return service.selectLog(ymonth);

    }

}
